home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Commander Sets / 4D MountPack / 4D MountPack.rsrc / TEXT_277_ MP Unmount.txt < prev    next >
Encoding:
Text File  |  1994-09-14  |  1.8 KB  |  39 lines

  1. MP¬†Unmount (volname)  ->  err
  2.  
  3. Unmounts any currently mounted volume.
  4.  
  5. err             integer       returns the error which occured. A value of 
  6.                                         zero indicates no error occured. See below 
  7.                                         for a list of possible errors.
  8.  
  9. volname      string (max. 27)      contains the volume name you want 
  10.                                         to unmount. Actually this may be a full path 
  11.                                         to a file or folder (max. length 255). As long 
  12.                                         as it starts with a volume name it will be 
  13.                                         succesfully unmounted. If the file or folder 
  14.                                         does not exist no error will be returned.
  15.  
  16.  
  17. For AppleShare volumes this is sufficient to disconnect from the server. Other non-ejectable volumes are unmounted as if the user moved its icon to the trash. Ejectable volumes are placed offline, but not ejected!!!
  18. The volume with the System Folder or with the Virtual Memory storage file can not be unmounted and, when trying to do so, will return an error.
  19.  
  20. Use this function to disconnect from a server if you are sure the volume you are handling is a server volume.
  21.  
  22.  
  23. Note: The length specified with a string is the maximum length possible. The external does not test for the size of the variables. Please, declare the string you use to the correct length. Use of these commands inside the Debugger window is not recommended.
  24.  
  25.  
  26. Possible errors:
  27. ¬†¬†¬†¬†0¬†¬†No Error
  28. ¬†¬†-35¬†¬†Volume with that name not found
  29. ¬†¬†-36¬†¬†I/O error
  30. ¬†¬†-37¬†¬†Bad volume name
  31. ¬†¬†-47¬†¬†One or more files are open on that volume
  32. ¬†¬†-50¬†¬†Parameter error (no volume name passed)
  33. ¬†¬†-55¬†¬†Volume off-line or ejected
  34.  
  35. And other errors Apple hasn't told me about.
  36.  
  37.  
  38.  
  39.